
import $ from "jquery";
export default class CommonUtils{
     public static centerDialog(){
            const availHeight:any=document.documentElement.clientHeight;
            const height:any=$(".el-dialog").height();
            const top=availHeight/2-height/2;
            const clientWidth=document.documentElement.clientWidth;
            const workClientWidth=clientWidth-50;
            const dialogWidth:any=$(".el-dialog").width();
            const left=(workClientWidth-dialogWidth)/2;
            //$(".el-dialog").css({"margin-top":top});
     }
}